package com.dc.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 危险品品出入库记录表
 *
 * @author feishaobin
 * @email
 * @date 2021-11-16 10:03:48
 */
@Data
@TableName("dc_ware_house_relation")
public class WareHouseRelation implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     *
     */
    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    /**
     * 编号
     */
    @ApiModelProperty(value = "编号")
    private String number;
    /**
     * 区域地址
     */
    @ApiModelProperty(value = "区域地址")
    private String address;
    /**
     * 出/入库数量
     */
    @ApiModelProperty(value = "出/入库数量")
    private Integer stockNum;
    /**
     * 0:入库 1:出库
     */
    @ApiModelProperty(value = "0:入库 1:出库")
    private Integer type;
    /**
     * 出入库时间
     */
    @ApiModelProperty(value = "出入库时间")
    private Date inOutTime;

    /**
     * 操作人
     */
    @ApiModelProperty(value = "出/入库数量")
    private String creator;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;

    @TableField(exist = false)
    private List<WareHouseDetail> wareHouseDetails;

}
